/**
 * 
 */
package contenedorSpring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Elkin Torres
 * 
 */
public class Contenedor {
	private static Contenedor singleton = null;
	private ApplicationContext ac = new ClassPathXmlApplicationContext("appConfigProfesor.xml");

	private Contenedor() {
	}

	/**
	 * @return the ac
	 */
	public ApplicationContext getApplicationContext() {
		return ac;
	}

	public static Contenedor getSingleton() {
		if (singleton == null) {
			singleton = new Contenedor();
		}
		return singleton;
	}
}
